package com.googlecode.jphysics.types;

public class RefractiveIndex {
	private double refractiveIndex;
	private Velocity velocity;
	
	public RefractiveIndex(double value) {
		refractiveIndex = value;
	}
	
	public RefractiveIndex(double c, double velocity) {
		refractiveIndex = c/velocity;
		this.velocity = new Velocity(velocity);
	}
	
	public double getRefractiveIndex() {
		return refractiveIndex;
	}
	
	public Velocity getVelocity() {
		return velocity;
	}
}
